import {createRouter,createWebHashHistory} from 'vue-router'


//
let router = createRouter({
    history:createWebHashHistory(),
    routes:[
      {
        path:'/',
        redirect:'/login'
      },
      {
        //用户登录页面
        path:'/login',
        component:()=>import('../views/LoginView.vue')
      },
      {
        //用户注册页面
        path:'/register',
        component:()=>import('../views/RegisterView.vue')
      }
  ]
})

//导出router
export default router;